Skip to content

profiles: improve sample_type comment #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

felixge
Copy link

@felixge felixge commented May 11, 2025

I think using nanoseconds is the better default unit for CPU profiles
because the weight of a count can be different depending on the sample
rate.

Using the same unit for off_cpu and cpu is more consistent.

The comment above was a little confusing, since it referred only to a
cpu profile, but was then followed by an off_cpu profile sample as well.
@felixge felixge changed the title profiles: use single Profile.sample_type profiles: improve sample_type comment May 11, 2025
@florianl florianl merged commit 37962b4 into florianl:issue-633 May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants